Skip to content
This repository was archived by the owner on Feb 10, 2025. It is now read-only.

Add a shared ignoreArgument callback #190

Merged
merged 3 commits into from
Oct 19, 2024
Merged

Add a shared ignoreArgument callback #190

merged 3 commits into from
Oct 19, 2024

Conversation

natebosch
Copy link
Contributor

Add a common_callbacks.dart library with a single top level function
ignoreArgument which takes a single dynamic argument and does
nothing. Replace all (_) => null function literals, as well as a few
library-private functions with unnecessarily specific signatures, with
the shared definition.

As suggested in #188

Add a `common_callbacks.dart` library with a single top level function
`ignoreArgument` which takes a single `dynamic` argument and does
nothing. Replace all `(_) => null` function literals, as well as a few
library-private functions with unnecessarily specific signatures, with
the shared definition.

As suggested in #188
@natebosch natebosch requested a review from lrhn June 17, 2024 22:57
@natebosch natebosch requested a review from devoncarew October 16, 2024 01:42
@natebosch natebosch merged commit 9de016f into master Oct 19, 2024
4 checks passed
@natebosch natebosch deleted the common-ignore branch October 19, 2024 00:19
mosuem pushed a commit to dart-lang/tools that referenced this pull request Dec 11, 2024
Add a `common_callbacks.dart` library with a single top level function
`ignoreArgument` which takes a single `dynamic` argument and does
nothing. Replace all `(_) => null` function literals, as well as a few
library-private functions with unnecessarily specific signatures, with
the shared definition.

As suggested in dart-archive/stream_transform#188
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants